 
 <template>
  <li @click="incrementHandler">{{index}}:{{message}}</li>
</template>
 
 
 <script>
export default {
  name: "todoItem",
  props: ["message", "index"],

  methods: {
    incrementHandler: function() {
      console.log(this.message);
      console.log(this.index);
      this.$emit("delete", this.index);
    }
  }
};
</script>


